package com.computec.indicadores.base.constantes;

import com.computec.indicadores.source.IndicadoresSource;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author Jose Luis Perea
 */

public class ConstantesGenerales {
    
    protected static ConstantesGenerales instance;
    
    public static String FACTORYDAO_CLASSNAME;
    public static String SCHEMA;
        
    public static int DAY_OF_MONTH_TO_PROCESS;
    
    protected ConstantesGenerales() {       
        IndicadoresSource indicadoresSource = IndicadoresSource.getInstance();
        
        this.FACTORYDAO_CLASSNAME = indicadoresSource.getIndicadoresSetupKey("DaoFactoryClassName");  
        this.SCHEMA               = indicadoresSource.getIndicadoresSetupKey("schema");  
        
        this.DAY_OF_MONTH_TO_PROCESS = Integer.parseInt(indicadoresSource.getIndicadoresSetupKey("dayOfMonthToProcess"));   
    }
    
    public static ConstantesGenerales getInstance() {
        if (instance == null) {
            instance = new ConstantesGenerales();
        }
        return instance;
    }
}